<template>
  <div class="home page-component">
    <!-- banner -->
    <el-carousel indicator-position="outside">
      <el-carousel-item v-for="item in 2" :key="item">
        <img src="~assets/images/web-banner1.png" alt="">
      </el-carousel-item>
    </el-carousel>

    <!-- 搜索 -->
    <div class="search-container">
      <div class="search-wrapper">
        <div class="hospital-search">
          <el-autocomplete class="search-input small"
                           prefix-icon="el-icon-search"
                           v-model="state"
                           :fetch-suggestions="queySearchAsync"
                           placeholder="点击输入医院名称"
                           @select="handleSelect">
            <span slot="suffix" class="search-btn v-link highlight clickable selected">搜 索</span>
          </el-autocomplete>
        </div>
      </div>
    </div>

    <!-- bottom -->
    <div class="bottom">
      <div class="left">
        <div class="home-filter-wrapper">
<!--          <div style="width: 10px;height: 10px" class="title small"> 医院</div>-->
          <div>
            <div class="filter-wrapper">
              <span class="label">等级：</span>
              <div class="condition-wrapper">
                <span class="item v-link highlight clickable selected">全部</span>
                <span class="item v-link clickable">三级医院</span>
                <span class="item v-link clickable">二级医院</span>
                <span class="item v-link clickable">一级医院</span>
<!--                <span class="item v-link clickable" :class="hostypeActiveIndex == index ? 'selected' : ''" v-for="(item,index) in hostypeList" :key="item.id" @click="hostypeSelect(item.value, index)">{{ item.name }}</span>-->
              </div>
            </div>
            <div class="filter-wrapper">
              <span class="label">地区：</span>
              <div class="condition-wrapper">
                <span class="item v-link highlight clickable selected">全部</span>
                <span class="item v-link clickable">东城区</span>
                <span class="item v-link clickable">西城区</span>
                <span class="item v-link clickable">朝阳区</span>
                <span class="item v-link clickable">朝阳区</span>
                <span class="item v-link clickable">朝阳区</span>
                <span class="item v-link clickable">朝阳区</span>
                <span class="item v-link clickable">朝阳区</span>
                <span class="item v-link clickable">朝阳区</span>
                <span class="item v-link clickable">朝阳区</span>
                <span class="item v-link clickable">朝阳区</span>
                <span class="item v-link clickable">朝阳区</span>
                <span class="item v-link clickable">朝阳区</span>
<!--                <span class="item v-link clickable" :class="provinceActiveIndex == index ? 'selected' : ''" v-for="(item,index) in districtList" :key="item.id" @click="districtSelect(item.value, index)">{{ item.name }}</span>-->
              </div>
            </div>
          </div>
        </div>
        <div class="v-scroll-list hospital-list">
          <div class="v-card clickable list-item">
<!--          <div class="v-card clickable list-item" v-for="item in list" :key="item.id">-->
            <div class="">
              <div class="hospital-list-item hos-item" index="0" @click="show(item.hoscode)">
                <div class="wrapper">
<!--                  <div class="hospital-title"> {{ item.hosname }}</div>-->
                  <div class="hospital-title">北京协和医院</div>
                  <div class="bottom-container">
                    <div class="icon-wrapper">
                      <span class="iconfont"></span>三级甲等
<!--                      <span class="iconfont"></span>{{ item.param.hostypeString }}-->
                    </div>
                    <div class="icon-wrapper">
                      <span class="iconfont"></span>每天8:30放号
<!--                      <span class="iconfont"></span>每天{{ item.bookingRule.releaseTime }}放号-->
                    </div>
                  </div>
                </div>
                <img src="~/assets/images/logo.png" alt="北京协和医院" class="hospital-img"/>
<!--                <img :src="'data:image/jpeg;base64,'+item.logoData" :alt="item.hosname" class="hospital-img">-->
              </div>
            </div>
          </div>
          <div class="v-card clickable list-item">
            <!--          <div class="v-card clickable list-item" v-for="item in list" :key="item.id">-->
            <div class="">
              <div class="hospital-list-item hos-item" index="0" @click="show(item.hoscode)">
                <div class="wrapper">
                  <!--                  <div class="hospital-title"> {{ item.hosname }}</div>-->
                  <div class="hospital-title">北京协和医院</div>
                  <div class="bottom-container">
                    <div class="icon-wrapper">
                      <span class="iconfont"></span>三级甲等
                      <!--                      <span class="iconfont"></span>{{ item.param.hostypeString }}-->
                    </div>
                    <div class="icon-wrapper">
                      <span class="iconfont"></span>每天8:30放号
                      <!--                      <span class="iconfont"></span>每天{{ item.bookingRule.releaseTime }}放号-->
                    </div>
                  </div>
                </div>
                <img src="~/assets/images/logo.png" alt="北京协和医院" class="hospital-img"/>
                <!--                <img :src="'data:image/jpeg;base64,'+item.logoData" :alt="item.hosname" class="hospital-img">-->
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="right">
        <div class="common-dept">
          <div class="header-wrapper">
<!--            <div class="title"> 常见科室</div>-->
            <div class="all-wrapper"><span>全部</span>
              <span class="iconfont icon"> </span>
            </div>
          </div>
          <div class="content-wrapper">
            <span class="item v-link clickable dark">神经内科 </span>
            <span class="item v-link clickable dark">消化内科 </span>
            <span class="item v-link clickable dark">呼吸内科 </span>
            <span class="item v-link clickable dark">内科 </span>
            <span class="item v-link clickable dark">神经外科 </span>
            <span class="item v-link clickable dark">妇科 </span>
            <span class="item v-link clickable dark"> 产科 </span>
            <span class="item v-link clickable dark">儿科 </span>
          </div>
        </div>
        <div class="space">
          <div class="header-wrapper">
            <div class="title-wrapper">
              <div class="icon-wrapper"><span
                class="iconfont title-icon"></span>
              </div>
<!--              <span class="title">平台公告</span>-->
            </div>

            <div class="all-wrapper">
              <span>全部</span>
              <span class="iconfont icon"></span>
            </div>
          </div>

          <div class="content-wrapper">
            <div class="notice-wrapper">
              <div class="point"></div>
              <span class="notice v-link clickable dark">关于延长北京大学国际医院放假的通知 </span>
            </div>
            <div class="notice-wrapper">
              <div class="point"></div>
              <span class="notice v-link clickable dark">北京中医药大学东方医院部分科室医生门诊医 </span>
            </div>
            <div class="notice-wrapper">
              <div class="point"></div>
              <span class="notice v-link clickable dark"> 武警总医院号源暂停更新通知 </span>
            </div>
          </div>
        </div>
        <div class="suspend-notice-list space">
          <div class="header-wrapper">
            <div class="title-wrapper">
              <div class="icon-wrapper">
                <span class="iconfont title-icon"></span>
              </div>
<!--              <span class="title">停诊公告</span>-->
            </div>
            <div class="all-wrapper">
              <span>全部</span>
              <span class="iconfont icon"></span>
            </div>
          </div>
          <div class="content-wrapper">
            <div class="notice-wrapper">
              <div class="point"></div>
              <span class="notice v-link clickable dark"> 中国人民解放军总医院第六医学中心(原海军总医院)呼吸内科门诊停诊公告 </span>
            </div>
            <div class="notice-wrapper">
              <div class="point"></div>
              <span class="notice v-link clickable dark"> 首都医科大学附属北京潞河医院老年医学科门诊停诊公告 </span>
            </div>
            <div class="notice-wrapper">
              <div class="point"></div>
              <span class="notice v-link clickable dark">中日友好医院中西医结合心内科门诊停诊公告 </span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  name: '首页',
  components: {
  }
}
</script>

<style>
.container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.title {
  font-family: "Quicksand", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* 1 */
  display: block;
  font-weight: 300;
  font-size: 100px;
  color: #35495e;
  letter-spacing: 1px;
}

.subtitle {
  font-weight: 300;
  font-size: 42px;
  color: #526488;
  word-spacing: 5px;
  padding-bottom: 15px;
}

.links {
  padding-top: 15px;
}
</style>

